memory optimization for vgg and resnet in image classification demo #7385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Memory optimization result(by bytes):
Correctness check in training loss seems good.
loss:[ 2.52220297]
loss:[ 2.66482925]
loss:[ 2.6781323]
loss:[ 2.75176835]
loss:[ 2.91183567]
loss:[ 2.63675451]
loss:[ 2.71298695]
loss:[ 2.71268129]
loss:[ 2.51224518]
loss:[ 2.57749677]
loss:[ 2.58871031]
loss:[ 2.62577391]
loss:[ 2.46702719]
loss:[ 2.47233582]
loss:[ 2.47583246]
loss:[ 2.43947959]
loss:[ 2.50619984]
loss:[ 2.48155594]
loss:[ 2.37081432]
loss:[ 2.5065763]
loss:[ 2.495049]
loss:[ 3.23119116]
loss:[ 3.46338725]
loss:[ 2.85568714]
loss:[ 2.86154795]
loss:[ 2.74208355]
loss:[ 2.61007118]
loss:[ 2.38463306]
loss:[ 2.55949521]
loss:[ 2.4749732]
loss:[ 2.32410693]
loss:[ 2.17808747]
loss:[ 2.14268446]
loss:[ 2.09680271]
loss:[ 2.13581395]
loss:[ 2.00303197]
loss:[ 2.09924126]
loss:[ 2.04527116]
loss:[ 1.99301922]
loss:[ 1.99249315]
loss:[ 1.92059994]
loss:[ 1.88696837]